/*
 */
package com.mbbmap.app.dao;

/**
 * @author Lue
 *
 */
public class AgencyDao {
    private String agencyCode="";
    private String agencyDesc="";
    private String agencyTypeId="";
    private String nostroNo="";
    private String mainAgentBIC="";
    private String countryCode="";
    private String regionCode="";
    private String cityCode="";
    private String operateHour="";
    private String telNo="";

	// Added by Meau 20091129
    private String mainAgencyCode="";
    private String subAgencyCode="";
    private String subAgencyBranchCode="";
    private String address1="";
    private String address2="";
    private String address3="";
    private String currencyCode="";
    private String virtualBranchCode = "";
    private String collectAccNo = "";//add by meb ailee 27112010


    private String transTypeAllowed="";

    public void setMainAgencyCode(String mainAgencyCode) {
        this.mainAgencyCode = mainAgencyCode;
    }

    public String getMainAgencyCode () {
        return this.mainAgencyCode;
    }

    public void setTransTypeAllowed(String transTypeAllowed) {
        this.transTypeAllowed = transTypeAllowed;
    }

    public String getTransTypeAllowed() {
        return this.transTypeAllowed;
    }

    public void setSubAgencyCode(String subAgencyCode) {
        this.subAgencyCode = subAgencyCode;
    }

    public String getSubAgencyCode () {
        return this.subAgencyCode;
    }

    public void setSubAgencyBranchCode(String subAgencyBranchCode) {
        this.subAgencyBranchCode = subAgencyBranchCode;
    }

    public String getSubAgencyBranchCode () {
        return this.subAgencyBranchCode;
    }

    public void setAddress1(String addr1) {
        this.address1 = addr1;
    }

    public String getAddress1() {
        return this.address1;
    }

    public void setAddress2(String addr2) {
        this.address2 = addr2;
    }

    public String getAddress2() {
        return this.address2;
    }

    public void setAddress3(String addr3) {
        this.address3 = addr3;
    }

    public String getAddress3() {
        return this.address3;
    }

	// end added by Meau 20091129
    public void setAgencyCode(String code) {
        this.agencyCode = code;
    }

    public void setAgencyDesc(String desc) {
        this.agencyDesc = desc;
    }

    public void setAgencyTypeId(String typeId) {
        this.agencyTypeId= typeId;
    }

    public void setNostroNo(String no) {
        this.nostroNo = no;
    }

    public void setMainAgentBIC(String bic) {
        this.mainAgentBIC = bic;
    }

    public void setCountryCode(String code) {
        this.countryCode = code;
    }

    public void setRegionCode(String code) {
        this.regionCode = code;
    }

    public void setCityCode(String code) {
        this.cityCode = code;
    }

    public void setTelNo(String phone) {
        this.telNo = phone;
    }

    public void setOperateHour(String hour) {
        this.operateHour = hour;
    }

    public void setCurrencyCode(String currencyCode) {
        this.currencyCode = currencyCode;
    }

    public void setVirtualBranchCode(String virtualBranchCode) {
        this.virtualBranchCode = virtualBranchCode;
    }

    public void setCollectAccNo(String collectAccNo) {
		if(collectAccNo!=null){
	        this.collectAccNo = collectAccNo.trim();
		}
    }

    /**
     *	GETTER
     */

    public String getAgencyCode () {
        return this.agencyCode;
    }

    public String getAgencyDesc() {
        return this.agencyDesc;
    }

    public String getAgencyTypeId () {
        return this.agencyTypeId;
    }

    public String getNostroNo () {
        return this.nostroNo;
    }

    public String getMainAgentBIC () {
        return this.mainAgentBIC;
    }

    public String getCountryCode () {
        return this.countryCode;
    }

    public String getRegionCode () {
        return this.regionCode;
    }

    public String getCityCode () {
        return this.cityCode;
    }

    public String getTelNo () {
        return this.telNo;
    }

    public String getOperateHour () {
        return this.operateHour;
    }

    public String getCurrencyCode () {
        return this.currencyCode;
    }

    public String getVirtualBranchCode() {
        return this.virtualBranchCode;
    }

	public String getCollectAccNo() {
        return this.collectAccNo;
    }

    public String toString() {
        StringBuffer sb = new StringBuffer("AgencyCode=").append(getAgencyCode()).append("\n");
        sb.append("agencyDesc=").append(getAgencyDesc()).append("\n");
        sb.append("agencyTypeId=").append(getAgencyTypeId()).append("\n");
        sb.append("nostroNo=").append(getNostroNo()).append("\n");
        sb.append("mainAgentBIC=").append(getMainAgentBIC()).append("\n");
        sb.append("countryCode=").append(getCountryCode()).append("\n");
        sb.append("regionCode=").append(getRegionCode()).append("\n");
        sb.append("cityCode=").append(getCityCode()).append("\n");
        sb.append("telNo=").append(getTelNo()).append("\n");
        sb.append("operateHour=").append(getOperateHour()).append("\n");
        sb.append("address1=").append(getAddress1()).append("\n");
        sb.append("address2=").append(getAddress2()).append("\n");
        sb.append("address3=").append(getAddress3()).append("\n");
        sb.append("currencyCode=").append(getCurrencyCode()).append("\n");//add by meb ailee 27112010
        sb.append("virtualBranchCode=").append(getVirtualBranchCode()).append("\n");//add by meb ailee 27112010
        sb.append("collectAccNo=").append(getCollectAccNo()).append("\n");//add by meb ailee 27112010
        return sb.toString();
    }

}
